package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品团购配置表
 * </p>
 *
 * @author leehao
 * @since 2019-05-30
 */
public class ProGroupConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品id
     */
    private Integer pid;

    /**
     * 产品编号
     */
    private String proCode;

    /**
     * 拼团需要总人数
     */
    private Integer num;

    /**
     * 拼团有效期(分钟)
     */
    private Integer times;

    /**
     * 团购开始时间 不选择默认立即开始
     */
    private Date beginTime;

    /**
     * 团购截止时间 不选择默认没有结束时间
     */
    private Date overTime;

    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }
    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getOverTime() {
        return overTime;
    }

    public void setOverTime(Date overTime) {
        this.overTime = overTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ProGroupConfig{" +
        "id=" + id +
        ", pid=" + pid +
        ", proCode=" + proCode +
        ", num=" + num +
        ", times=" + times +
        ", beginTime=" + beginTime +
        ", overTime=" + overTime +
        ", createTime=" + createTime +
        "}";
    }
}
